import { Upload } from "element-ui";
import Vue from "vue";
import VueRouter from "vue-router";

// 引入组件
import image from "./views/image.vue";
import upload from "./views/upload.vue";

// 要告诉 vue 使用 vueRouter
Vue.use(VueRouter);

const routes = [
    {
        path:"/image",
        component: image
    },
    {
        path:"/upload",
        component: upload
    },
    {
        path:"/",
        component: upload
    },
]

var router =  new VueRouter({
    mode: 'history',
    routes
})
export default router;